<?php


namespace app\admin\controller\dataCenter;


use app\common\service\ReportService;
use think\Request;

class Report
{
    protected $report = "";

    public function __construct(ReportService $report)
    {
        $this->report = $report;
    }

    public function index(Request $request)
    {
        $data = $request->only(['name', 'phone', 'start_create_time', 'end_create_time', 'page', 'limit','source_type']);
        $list = $this->report->getList($data);
        return successJson("举报列表返回成功", $list);
    }
}